home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Columbia Kermit
/
kermit.zip
/
newsgroups
/
misc.19980424-19980901
/
000047_news@newsmaster….columbia.edu _Wed May 6 10:52:28 1998.msg
< prev
next >
Wrap
Internet Message Format
|
2020-01-01
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id KAA15363
for <kermit.misc@watsun.cc.columbia.edu>; Wed, 6 May 1998 10:52:27 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id KAA27913
for kermit.misc@watsun; Wed, 6 May 1998 10:52:26 -0400 (EDT)
Path: news.columbia.edu!watsun.cc.columbia.edu!jaltman
From: jaltman@watsun.cc.columbia.edu (Jeffrey Altman)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Date Bug?
Date: 6 May 1998 14:52:22 GMT
Organization: Columbia University
Lines: 49
Message-ID: <6iptf6$t8i$1@apakabar.cc.columbia.edu>
References: <6ionbf$s3g@bgtnsc01.worldnet.att.net> <6iprm7$s4s$1@apakabar.cc.columbia.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8699
In article <6iprm7$s4s$1@apakabar.cc.columbia.edu>,
Frank da Cruz <fdc@watsun.cc.columbia.edu> wrote:
: In article <6ionbf$s3g@bgtnsc01.worldnet.att.net>,
: Bernie <bfb@worldnet.att.net> wrote:
: : There's a 4 hour discrepancy between the date in C-Kermit
: : 6.0.192 and my linux box. Below is the date command issued
: : from C-Kermit and then the command line.
: :
: : How can I set these to be the same?
: :
: : C-Kermit@localhost> date
: : Wed May 6 03:59:03 1998
: :
: : C-Kermit@localhost> qui
: : /home/super/kermit> date
: : Tue May 5 23:59:08 EDT 1998
: :
: I've never seen this before. C-Kermit gets the date and time
: (as you might expect) by asking the operating system. The
: DATE command simply prints the string returned by the OS.
:
: The exact method for getting the date depends on the operating
: system. In most forms of UNIX, the method is to call time(0),
: which returns GMT, and then convert to a local-time string by
: passing the time(0) result to ctime(), which is supposed to
: return local time.
:
: It looks like there might be some confusion about this on your
: computer. Locally (in the Eastern USA timezone), the Kermit
: "date" command returns the local date and time.
:
: If you want to look at the code, see function ztime() in
: ckufio.c.
:
: - Frank
This might provide a bit of a clue. Most Unix system have their
hardware clocks set to GMT instead of local time. All of the
C runtime library time functions make this assumption.
It appears that you have your hardware clock set to local time
and somehow the 'date' command knows this but the C run time functions
(and therefore C-Kermit) do not.
Jeffrey Altman * Sr.Software Designer * Kermit-95 for Win32 and OS/2
The Kermit Project * Columbia University
612 West 115th St #716 * New York, NY * 10025
http://www.kermit-project.org/k95.html * kermit-support@kermit-project.org